import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.jsx";

import { Provider } from "react-redux";

import store from "./store/index";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<Provider store={store}><App /></Provider>);

//订阅状态管理器中的内容发生改变后重新渲染页面
// store.subscribe(() => {
//   root.render(<App />);
// });  
